<extend name="Public:base"/>

<block name="main">
<div id="yzh-content" class="col-xs-12">
    <div class="main-title">
        <h2>菜单管理</h2>
    </div>

    <form method='post' id="myform" class="form-horizontal" action="">

        <div class="form-group">
            <label class="control-label col-md-2">上级:</label>
            <div class="col-md-6">
                <select name="parentid" class="form-control">
                <option value="0">一级菜单</option>
                {$select_categorys}
            </select></div>
        </div>
        <div class="form-group">
            <label class="control-label col-md-2">名称:</label>
            <div class="col-md-6">
                <input type="text" class="form-control"  name="name" value="{$vo.name}">
            </div>
          </div>
        <div class="form-group">
            <label class="control-label col-md-2">模块:</label>
            <div class="col-md-6">
                <input type="text" class="form-control" name="model" value="{$vo.model}" >
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-md-2">方法:</label>
            <div class="col-md-6">
                <input type="text" class="form-control"  name="action" value="{$vo.action}" > {:L('default')}:index
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-md-2">参数:</label>
            <div class="col-md-6">
                <input type="text" class="form-control" name="data" value="{$vo.data}"> {:L('examples')}:groupid=1&type=2
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-md-2">图标:</label>
            <div class="col-md-6">
                <!-- <i class="{$vo.icon}"></i> -->
                <input type="text" class="form-control" name="icon" value="{$vo.icon}">
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-md-2">备注:</label>
            <div class="col-md-6">
                <textarea class="form-control" name="remark" rows="5" cols="57">{$vo.remark}</textarea>
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-md-2">状态:</label>
            <div class="col-md-6">
                <select name="status" class="form-control">
                <option value="1"<eq name="vo.status" value="1"> selected</eq>>{:L('enable')}</option>
                <option value="0"<eq name="vo.status" value="0"> selected</eq>>{:L('disable')}</option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-md-2">是否仅开发环境可见:</label>
            <div class="col-md-6">
                <select name="is_dev" class="form-control">
                    <option value="0"<eq name="vo.is_dev" value="0"> selected</eq>>否</option>
                    <option value="1"<eq name="vo.is_dev" value="1"> selected</eq>>是</option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-md-2">类型:</label>
            <div class="col-md-6">
                <select name="type" class="form-control">
                <option value="1"<eq name="vo.type" value="1"> selected</eq>>{:L('menu_type1')}</option>
                <option value="2"<eq name="vo.type" value="2"> selected</eq>>{:L('menu_type2')}</option>
                </select>
            </div>
        </div>

        <div class="form-actions">
            <input TYPE="hidden" name="id" value="{$vo.id}"/>
            <input type="submit" value="提交" class="btn btn-sm btn-primary" />
            <input type="reset" value="重置" class="btn btn-sm btn-primary"/>
        </div>
    </form>
</div>
</block>